package com.itheima.aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class MyAspect {

    public void before(){
        System.out.println("MyAspect.before...");
    }

    public void after(){
        System.out.println("MyAspect.after...");
    }

    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("around-before");
        Object proceed = pjp.proceed();
        System.out.println("around-after");
        return proceed;
    }

    public void afterThrowing(){
        System.out.println("异常...");
    }
}
